package com.tyl.dao.bill;

import com.tyl.pojo.Bill;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface BillDao {
    /**
     * 通过供应商id获取订单
     * **/
    public int getBillCountByProviderId(Connection connection, String providerId) throws SQLException;

    /**
     * 获取订单列表
     * **/
    List<Bill> getBillList(Connection connection ,Bill bill) throws SQLException;

    /**
     * 获取订单id
     * **/
    public  Bill getBillId(Connection connection,String billId) throws SQLException;

    /**
     * 删除订单
     * **/
    int deleteBill(Connection connection,String billId) throws SQLException;

    /**
     * 添加订单
     * **/
    int addBill(Connection connection,Bill bill) throws SQLException;

    /**
     * 修改订单
     * **/
    int updateBill(Connection connection ,Bill bill) throws SQLException;
}
